<?php
class FinanceDao {
	public function getByTeacherId($teacherId){
		return ClassManager::getSql()->onedata('finance','*',"where teacher_id=".intval($teacherId));
	}
	public function add($data){
		ClassManager::getSql()->insert('finance', $data);
	}
	public function updata($data , $teacherId){
		ClassManager::getSql()->updates('finance',$data,"where teacher_id=".intval($teacherId));
	}
}

?>